package com.ea.common.constant;

/**
 * @author NAME-L
 * @Description redis键值管理公共类
 * @className RedisKeyConstant
 * @date 2022-12-06 22:31:28
 */
public class RedisKeyConstants {

    public static final String SUBJECT_KEY = "electric:appliance:";

    /**
     * 开头没有SYS_的都需要手动的拼接上 SUBJECT_KEY + "唯一标识"
     */

    // 系统设置syscfg
    public static final String SYS_CFG_KEY = SUBJECT_KEY + "sys:cfg";

    // 需要完善规格信息后上架的货品
    public static final String SYS_NEES_PERFECT_GOODS_SKU = SUBJECT_KEY + "need:perfect:goods:sku";

    // 前台商城用户登录token
    public static final String USER_LOGIN_TOKEN = ":user:login:token";

    // 前台商城用户登录失败记录
    public static final String USER_LOGIN_FAIL = ":user:login:fail;";

    // 电器热点数据redisKey
    public static final String SYS_ELECTRIC_HOT_CACHE = SUBJECT_KEY + "hot:electric:cache";

    // 用户购物车存储redisKey
    public static final String USER_CART =SUBJECT_KEY + "user:cart:";

    // 订单地址存储省市编码code redisKey
    public static final String ORDER_ADDRESS_CODE = SUBJECT_KEY +"order:address:code";

    // 管理员登录token
    public static final String ADMIN_LOGIN_TOKEN = ":admin:login:token";

    // 登录失败记录
    public static final String ADMIN_LOGIN_FAIL = ":login:fail:admin";

    // 热点货品数据
    public static final String HOT_GOODS = SUBJECT_KEY + "hot:goods:cache";

    // 待支付订单id
    public static final String BE_PAY_ORDER = SUBJECT_KEY + "be_pay_order:";

    public static final String FLOWER_UPLOAD_IMG_NAME = SUBJECT_KEY + "flower_upload_img_name";
}
